package cuishifeng.blog.learn.algorithm;

import java.util.stream.Stream;

/**
 * 测试数据集
 *
 * @author cuishifeng <cuishifeng0207@163.com>
 * Created on 2021-02-27
 */
public class TestData {

    /**
     * 返回测试数组数据集合
     *
     * @return int[]
     */
    public static int[] arrayData() {
        return new int[] {5, 3, 4, 1, 2, 8, 7, 6, 9};
    }


    public static void printArray(int[] array) {
        for (int i = 0; i < array.length; i++) {
            if (array.length - 1 != i) {
                System.out.print(array[i] + ", ");
            } else {
                System.out.print(array[i]);
            }
        }
    }

   
}
